#include "Paitent.h"
 
int main()
{
	Paitent* p = new Paitent();
      int t = 0;
      while (p->GetState() == 1)
      {

		  printf("Take Medicine (0 = NO, 1 = YES):");
          scanf("%d", &t);
            if (t == 1)
            {  
				  int min = 1;
                  int max = 60;
                  int medicine_resistance = min + (rand() % (int)(max - min + 1));
				  //printf("1111111111111111");
                  p->TakeMedicine(medicine_resistance);
            }
      }
}